from api import views
from django.urls import re_path

urlpatterns = [
    re_path('^tasks/$', views.TodoList.as_view(), name='todolist'),
    re_path('^tasks/(?P<task_id>\d+)/$', views.Todo.as_view(), name='todo'),
]
